package com.scau.service.impl.business;

import java.io.Serializable;

import org.springframework.stereotype.Component;

import com.scau.exception.BusinessException;
import com.scau.model.business.CancelShoe;
import com.scau.service.BaseService;

@Component
public class CancelShoeService extends BaseService<CancelShoe> implements Serializable{
	public void save(CancelShoe c) throws BusinessException{
		if (null != c && null != c.getId()) {
			if(null != c.getId()&& 0 != c.getId()){
				update(c);
			}else{
				add(c);
			}
		}else {
			throw new BusinessException("冲单ID不能为空");
		}
	}

}
